using SqlSugar;

namespace LowCoding.Domain
{
    /// <summary>
    /// 代码类型表
    /// </summary>
    [SugarTable("BASE_REF_C_TYPES")]
    public class RefCTypes
    {
        /// <summary>
        /// 域名代码
        /// </summary>
        [SugarColumn(ColumnName = "RV_DOMAIN")]
        public string RvDomain { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        [SugarColumn(ColumnName = "RV_NAME")]
        public string RvName { get; set; }

        /// <summary>
        /// 类型  U--用户代码  S--系统代码
        /// </summary>
        [SugarColumn(ColumnName = "RV_TYPE")]
        public string RvType { get; set; }

        /// <summary>
        /// 字段长度
        /// </summary>
        [SugarColumn(ColumnName = "RV_LENGTH")]
        public int RvLength { get; set; }

        /// <summary>
        /// 有效否Y有效   N--无效
        /// </summary>
        [SugarColumn(ColumnName = "RV_ISVALID")]
        public string RvIsvalid { get; set; }

        /// <summary>
        /// 企业ID
        /// </summary>
        [SugarColumn(ColumnName = "FLT_ID")]
        public string RvFltId { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnName = "RV_REMARK")]
        public string Remark { get; set; }

        /// <summary>
        /// 新增时间
        /// </summary>
        [SugarColumn(ColumnName = "CREATED", IsOnlyIgnoreUpdate = true)]
        public DateTime? Created { get; set; }

        /// <summary>
        /// 新增人员
        /// </summary>
        [SugarColumn(ColumnName = "CREATOR", IsOnlyIgnoreUpdate = true)]
        public string Creator { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        [SugarColumn(ColumnName = "LASTMODIFIED")]
        public DateTime? Lastmodified { get; set; }

        /// <summary>
        /// 修改人员
        /// </summary>
        [SugarColumn(ColumnName = "LASTMODIFIER")]
        public string Lastmodifier { get; set; }

        /// <summary>
        /// 是否删除(1 为删除  0和空 为 未删除)
        /// </summary>
        [SugarColumn(ColumnName = "ISDEL", IsOnlyIgnoreUpdate = true)]
        public string Isdel { get; set; }

        /// <summary>
        /// 修改次数
        /// </summary>
        [SugarColumn(ColumnName = "VERSION")]
        public int Version { get; set; }

        /// <summary>
        /// ID
        /// </summary>
        [SugarColumn(ColumnName = "ID", IsPrimaryKey = true)]
        public string Id { get; set; }
    }
}